home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / music / led200sw.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-03-10  |  5KB  |  160 lines

  1. @echo off
  2.  
  3. IF NOT "%1" == "" GOTO :HELP
  4.  
  5. :MENU
  6. CLS
  7. ECHO.
  8. echo        ╔═══════════════════════════════════════════════════════════════╗
  9. ECHO        ║          *********** SHAREWARE VERSION *************          ║
  10. ECHO        ║                                                               ║
  11. ECHO        ║          LOUDSPEAKER ENCLOSURE DESIGNER version 2.00          ║
  12. ECHO        ║                                                               ║
  13. ECHO        ║                 Program installation utility                  ║
  14. echo        ║                                                               ║
  15. echo        ╚═══════════════════════════════════════════════════════════════╝
  16. echo.
  17. echo         This installation utility WILL remove previous versions of LED.
  18. echo.
  19. echo                      Press ENTER to continue, or Q to quit.
  20. echo.
  21. echo.
  22. input
  23. if errorlevel 81 if not errorlevel 82 goto :QUIT
  24.  
  25. :MENU2
  26. cls
  27. echo.
  28. echo.
  29. echo       On which hard drive is AS EASY AS spreadsheet installed?
  30. echo.      Enter only the drive letter, i.e.  C  
  31. echo.
  32. echo       As Easy As must reside on this drive in it's default 
  33. echo       directory, \ASEASY\.  
  34. echo.
  35. echo.
  36. echo       EXAMPLE:  If AS EASY AS is installed in C:\ASEASY\, enter C now.
  37. echo.
  38. echo.
  39. input
  40. if errorlevel 75 goto :NOFLOPPY
  41. if errorlevel 74 if not errorlevel 75 SET DR1=J
  42. if errorlevel 73 if not errorlevel 74 SET DR1=I
  43. if errorlevel 72 if not errorlevel 73 SET DR1=H
  44. if errorlevel 71 if not errorlevel 72 SET DR1=G
  45. if errorlevel 70 if not errorlevel 71 SET DR1=F
  46. if errorlevel 69 if not errorlevel 70 SET DR1=E
  47. if errorlevel 68 if not errorlevel 69 SET DR1=D
  48. if errorlevel 67 if not errorlevel 68 SET DR1=C
  49. if errorlevel 66 if not errorlevel 67 goto :NOFLOPPY
  50. if errorlevel 65 if not errorlevel 66 goto :NOFLOPPY
  51.  
  52. :INSTALL
  53. if not exist %DR1%:\aseasy\*.exe goto :NOASEASY
  54. md %DR1%:\aseasy\led > nul
  55. md %DR1%:\aseasy\led\drivers > nul
  56. md %DR1%:\aseasy\led\filters > nul
  57. if exist %DR1%:\aseasy\led\l*.wks attrib -r %DR1%:\aseasy\led\l*.wks
  58. if exist %DR1%:\aseasy\led\l*.wks del %DR1%:\aseasy\led\l*.wks
  59. copy l200-psw.fpx %DR1%:\aseasy\led\l200-psw.exe > nul
  60. %DR1%:\aseasy\led\l200-psw %DR1%:\aseasy\led\
  61. del %DR1%:\aseasy\led\l200-psw.exe > nul
  62. ren %DR1%:\ASEASY\LED\led-sw.200 LEDV200.WKS
  63. attrib +r %DR1%:\aseasy\led\l*.wks
  64. copy l200-d.fpx %DR1%:\aseasy\led\drivers\l200-d.exe > nul
  65. %DR1%:\aseasy\led\drivers\l200-d -n %DR1%:\aseasy\led\drivers\
  66. del %DR1%:\aseasy\led\drivers\l200-d.exe > nul
  67. copy l200-f.fpx %DR1%:\aseasy\led\filters\l200-f.exe > nul
  68. %DR1%:\aseasy\led\filters\l200-f -n %DR1%:\aseasy\led\filters\
  69. del %DR1%:\aseasy\led\filters\l200-f.exe > nul
  70. attrib +r %DR1%:\aseasy\led\filters\*.*
  71. goto :PRTDOX
  72.  
  73. :NOASEASY
  74. echo.
  75. echo.
  76. echo       AS EASY AS WAS NOT FOUND IN %DR1%:\ASEASY\ !
  77. ECHO.
  78. echo       Press ENTER to select another drive or Q to quit.
  79. echo.
  80. echo.
  81. input
  82. if errorlevel 81 if not errorlevel 82 goto :quit
  83. set dr1=
  84. goto :MENU2
  85.  
  86. :NOFLOPPY
  87. echo.
  88. echo.
  89. echo       Valid drives are  C  through  J .  You must select one of these
  90. echo       letters for LED installation.
  91. echo.
  92. echo       Press ENTER to select another drive or Q to quit.
  93. echo.
  94. echo.
  95. input
  96. if errorlevel 81 if not errorlevel 82 goto :quit
  97. goto :MENU2
  98.  
  99. :HELP
  100. echo.
  101. echo      To install LED v2.00, type  INSTALL  
  102. echo.    
  103. echo      Note that As Easy As spreadsheet version 5.50C or newer must already
  104. echo      be installed in it's default directory, \ASEASY\.
  105. echo.
  106. goto :END
  107.  
  108. :PRTDOX
  109. cls
  110. echo.
  111. echo.     Do you want to print LED's instruction manual now (Y/N)?
  112. echo      The document is 20 pages long.
  113. echo.
  114. input
  115. if errorlevel 89 if not errorlevel 90 goto :PRT
  116. if errorlevel 78 if not errorlevel 79 goto :DONE
  117. goto :PRTDOX
  118.  
  119. :PRT
  120. echo.
  121. echo      Copying document to printer now...
  122. copy %DR1%:\aseasy\led\ledv200.man prn > nul
  123. goto :DONE
  124.  
  125. :QUIT
  126. echo.
  127. echo.
  128. echo                             Installation terminated.
  129. echo.
  130. echo                              LED was not installed. 
  131. echo.
  132. goto :END
  133.  
  134. :DONE
  135. cls
  136. echo.
  137. echo        ╔═══════════════════════════════════════════════════════════════╗
  138. ECHO        ║                                                               ║
  139. ECHO        ║          LOUDSPEAKER ENCLOSURE DESIGNER version 2.00          ║
  140. ECHO        ║                                                               ║
  141. ECHO        ║                    Installation complete!                     ║
  142. echo        ║                                                               ║
  143. echo        ╚═══════════════════════════════════════════════════════════════╝
  144. echo.
  145. echo           Do you want to create an LED2.BAT startup file now (Y/N)?
  146. echo.
  147. echo.
  148. input
  149. if errorlevel 89 if not errorlevel 90 goto :MKBAT
  150. if errorlevel 78 if not errorlevel 79 goto :END
  151.  
  152. :MKBAT
  153. set DR1=
  154. makebat
  155.  
  156. :END
  157. SET DR1=
  158. echo.
  159.  
  160.